<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
	</head>
	<body>
		 <script src="js/jquery-3.0.0.min.js"></script>
         <script src="js/core.js"></script>
		 <script>
		 	$(function(){
		    var code=getvl("code");
			if(code!=""){
			$.ajax({
		url: urlcore + "/api/user/getOpenidadmin?code="+code,
		type: "get",
		dataType: 'json',
		contentType: "application/json;charset=utf-8",
		success:function(data){
			if (data.success == true) {
                   if(data.data!="" && data.data!=null){
                   	window.location.href="finance_advertisement_list.html";
                   }else{
                   	 //alert("此账号未授权");
                   	 window.location.href="quanxian.html";
                   }
			}else{
				//alert(data.msg);
				 window.location.href="quanxian.html";
			}
		}, error: function() {
				//alert("error");
				 window.location.href="quanxian.html";
			}
      	});	
			}
		 });
			
		</script>
		
	</body>
</html>
